package com.tanhua.model.domain;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;


/**
 * @Description: 用户行为日志记录  log for action of users
 * @Author: Spike Wong
 * @Date: 2022/8/22
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class Log extends BasePojo{
    /**
     * id 日志id
     */
    private Long id;
    /**
     * 用户id
     */
    private Long userId;
    /**
     * 操作时间 operation generate time
     */
    private String logTime;

    /**
     * 操作类型,
     * 0101为登录，0102为注册，
     * 0201为发动态，0202为浏览动态，0203为动态点赞，0204为动态喜欢，0205为评论，0206为动态取消点赞，0207为动态取消喜欢，
     * 0301为发小视频，0302为小视频点赞，0303为小视频取消点赞，0304为小视频评论
     */
    private String type;

    /**
     * 登陆地点 login location
     */

    private String place="unknow";

    /**
     * 登陆设备 device
     */
    private String equipment="unknow";
//    private String isDeleted;

    public Log(Long userId, String logTime, String type) {
        this.userId = userId;
        this.logTime = logTime;
        this.type = type;
    }
}